Task-Based Help > Customizing the C1Dialog Control > Customizing the Width and Height of C1Dialog |
This topic will take you through customizing the width and height ofC1Dialog. This can be done in the Design View, in the Source View, in Code, or at run time.
In Design View
Complete the following steps:
In Source View
Complete the following steps:
<cc1:C1Dialog>
tags:
To write code in Source View
<cc1:C1Dialog ID="C1Dialog1" runat="server" CloseOnEscape="False"
Height="400px" Width="400px">
In Code
Add the following code to the Page_Load event to set the Height and Width properties of the C1Dialog control.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Dialog1.Height = 150 Me.C1Dialog1.Width = 150 |
To write code in C#
C# |
Copy Code
|
---|---|
this.C1Dialog1.Height = 150; this.C1Dialog1.Width = 150; |
At Run Time
Complete the following steps:
You can set the width and height of your dialog window at run time, as well.